import Nifi from "src/nifi";
import {h} from "vue"
import ContextmenuElem from "./contextmenu.vue"

export default (nifi:Nifi) => {



    // 右键菜单
    const contextmenu = (evt:Event) => {
        const vnode = h(ContextmenuElem,{nifi})
        nifi.contextmenu.open(evt, vnode);
    };

    return {
        contextmenu
    }
}